package controller;

import dao.MainMessageDao;

public class MainMessageController {

    private final MainMessageDao mainMessageDao = new MainMessageDao();

    public void addMessage(String name, String message, int status) {
        mainMessageDao.addMessage(name, message, status);
    }

    public String[] getMessages() {
        return mainMessageDao.getMessages();
    }
}